package com.cis.education.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.cis.education.mapper.EduClassroomMapper;
import com.cis.education.domain.EduClassroom;
import com.cis.education.service.IEduClassroomService;
import com.cis.common.core.text.Convert;

/**
 * 教室管理Service业务层处理
 * 
 * @author 管理员
 * @date 2022-01-11
 */
@Service
public class EduClassroomServiceImpl implements IEduClassroomService 
{
    @Autowired
    private EduClassroomMapper eduClassroomMapper;

    /**
     * 查询教室管理
     * 
     * @param id 教室管理主键
     * @return 教室管理
     */
    @Override
    public EduClassroom selectEduClassroomById(Integer id)
    {
        return eduClassroomMapper.selectEduClassroomById(id);
    }

    /**
     * 查询教室管理列表
     * 
     * @param eduClassroom 教室管理
     * @return 教室管理
     */
    @Override
    public List<EduClassroom> selectEduClassroomList(EduClassroom eduClassroom)
    {
        return eduClassroomMapper.selectEduClassroomList(eduClassroom);
    }

    /**
     * 新增教室管理
     * 
     * @param eduClassroom 教室管理
     * @return 结果
     */
    @Override
    public int insertEduClassroom(EduClassroom eduClassroom)
    {
        return eduClassroomMapper.insertEduClassroom(eduClassroom);
    }

    /**
     * 修改教室管理
     * 
     * @param eduClassroom 教室管理
     * @return 结果
     */
    @Override
    public int updateEduClassroom(EduClassroom eduClassroom)
    {
        return eduClassroomMapper.updateEduClassroom(eduClassroom);
    }

    /**
     * 批量删除教室管理
     * 
     * @param ids 需要删除的教室管理主键
     * @return 结果
     */
    @Override
    public int deleteEduClassroomByIds(String ids)
    {
        return eduClassroomMapper.deleteEduClassroomByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除教室管理信息
     * 
     * @param id 教室管理主键
     * @return 结果
     */
    @Override
    public int deleteEduClassroomById(Integer id)
    {
        return eduClassroomMapper.deleteEduClassroomById(id);
    }
}
